package demo;

import observer.Transmitter;

/**
 * 测试用的事件源发生者
 */
public class Source {

    public void init(){
        Transmitter transmitter = new Transmitter(MessageReceiver.TEST_ACTION);
        transmitter.put(MessageReceiver.TEST_FLAG, "测试消息！");
        transmitter.setFlag(MessageReceiver.TEST_AREA);
        transmitter.send();
    }
}
